import type { Recordable } from '@vben/types';
import { requestClient } from '#/api/request';

export async function list(data) {
  return requestClient.post('/user/organization/list', data);
}

export async function add(data) {
  return requestClient.post('/user/organization/add', data);
}

export async function edit(data) {
  return requestClient.post('/user/organization/edit', data);
}

export async function deleteId(data) {
  return requestClient.post('/user/organization/delete', data);
}

export async function getOrganizationById(data) {
  return requestClient.post('/user/organization/getOrganizationById', data);
}

export async function getOrganizationsByUserId(data) {
  return requestClient.post('/user/organization/getOrganizationsByUserId', data);
}
